﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsGame1
{
    class Caio : Scene
    {
        float teclaMais;
        float totalClicks = 30;

        SpriteFont fonte;


        public Caio()
            : base()
        { }
        public override void Load(ContentManager Content)
        {
            fonte = Content.Load<SpriteFont>("HUD");
        }

        public override void  Update(GameTime gameTime)
        { 
            if (teclaMais >= totalClicks)
                return;
            if (Input.anyKeyDown)
                teclaMais += 1;

            

        }

        public override void Draw(SpriteBatch spriteBatch, GameTime gameTime)
        {
            spriteBatch.DrawString(fonte, "Voce apertou " + teclaMais + " vezes", new Vector2(200), Color.White);



        }
    }
}
